import request from '@/utils/request'

export default {
  // 分页查询问题列表
  getQuestionList(page, limit, searchObj) {
    return request({
      url: `/eduservice/question/${page}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },

  // 删除问题
  deleteQuestion(id) {
    return request({
      url: `/eduservice/question/${id}`,
      method: 'delete'
    })
  },

  // 获取问题详情
  getQuestionById(id) {
    return request({
      url: `/eduservice/question/${id}`,
      method: 'get'
    })
  }
}